package col.edu.uniq.tiendamus.intprins;
import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ButtonGroup;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JOptionPane;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;
import javax.swing.SwingConstants;

import javax.swing.WindowConstants;
import javax.swing.border.BevelBorder;
import javax.swing.border.LineBorder;
import javax.swing.SwingUtilities;





/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
/**
* esta pantalla es la que solo la puede ver el administrador
* para crear las promociones o eliminarlas 
* y para poder ingresar mas productos para la venta
* 
* 	@author Diego Sanchez, David Giraldo, Angelica Soto
 *	@fecha 28 oct 2013
 *@version 2.0
*/
public class Promociones extends javax.swing.JFrame {
      public TiendaPrin tienda;
      private JPanel jPPromociones;
      private JLabel jLPromociones;
      private JLabel jLPorcentDesTipo;
      private JTextField jTextFPorcUmbral;
      private JLabel jLPorcPromUmbral;
      private JTextField jTextFValorUmbral;
      private JLabel jLValorUmbral;
      private JPanel jPromoUmbral;
      private JRadioButton jRadioBPromoTitulo;
      private JButton jBCrearPromoTipo;
      private JTextField jTextFTituloProdPromo;
      private JButton jBSalir;
      private ButtonGroup buttonGroupRadioBProm;
      private JPanel jPRbutonsProm;
      private JButton jBuscarElimPromFecha;
      private JButton jBuscarElimPromUmbral;
      private JButton jBuscarElimPromTitulo;
      private JButton jBBuscarElimPromTipo;
      private JButton jBCrearPromFecha;
      private JLabel jLabel3;
      private JLabel jLPorcPromFecha;
      private JTextField jTextFPorcPromFecha;
      private JTextField jTextFechaFinal;
      private JLabel jLFinalFechaProm;
      private JTextField jTextFInicioPromFecha;
      private JLabel jLInicioPromoFecha;
      private JPanel jPromoFecha;
      private JButton jBCrearPromoUmbral;
      private JLabel jLabel2;
      private JButton jBCrearPromTitulo;
      private JLabel jLabel1;
      private JLabel jLIconoPorc;
      private JTextField jTextFPorcPromTitul;
      private JLabel jLPorcTitulo;
      private JLabel jLPromoTitulo;
      private JPanel jPPromoTitulo;
      private JRadioButton jRadioBPromoTope;
      private JRadioButton jRadioBPromFechas;
      private JRadioButton jRadioBPromTipo;
      private JTextField jTextFPorcDto;
      private JComboBox jComboBoxTipoProm;
      private JLabel jLTipoPro;
      private JPanel jPPromoTipo;
	/**
	* Auto-generated main method to display this JFrame
	*/
	
	public Promociones() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				jPPromociones = new JPanel();
				getContentPane().add(jPPromociones, BorderLayout.CENTER);
				jPPromociones.setBackground(new java.awt.Color(85,170,255));
				jPPromociones.setLayout(null);
				jPPromociones.setPreferredSize(new java.awt.Dimension(1134, 581));
				{
					jPPromoTipo = new JPanel();
					jPPromociones.add(jPPromoTipo);
					jPPromoTipo.setBounds(12, 123, 514, 154);
					jPPromoTipo.setBorder(BorderFactory.createTitledBorder("Promocion por tipo"));
					jPPromoTipo.setLayout(null);
					{
						jLTipoPro = new JLabel();
						jPPromoTipo.add(jLTipoPro);
						jLTipoPro.setText("Tipo de producto");
						jLTipoPro.setBounds(17, 34, 109, 16);
					}
					{
						ComboBoxModel jComboBoxTipoPromModel = 
								new DefaultComboBoxModel(
										new String[] {  "DVD", "CD","LIBROS"  });
						jComboBoxTipoProm = new JComboBox();
						jPPromoTipo.add(jComboBoxTipoProm);
						jComboBoxTipoProm.setModel(jComboBoxTipoPromModel);
						jComboBoxTipoProm.setBounds(138, 31, 125, 23);
						jComboBoxTipoProm.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0,0,0)));
						jComboBoxTipoProm.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jComboBoxTipoPromActionPerformed(evt);
							}
						});
						jComboBoxTipoProm.setEnabled(false);
					}
					{
						jLPorcentDesTipo = new JLabel();
						jPPromoTipo.add(jLPorcentDesTipo);
						jLPorcentDesTipo.setText("Porcentaje :");
						jLPorcentDesTipo.setBounds(17, 88, 109, 16);
					}
					{
						jTextFPorcDto = new JTextField();
						jPPromoTipo.add(jTextFPorcDto);
						jTextFPorcDto.setBounds(138, 85, 38, 23);
						jTextFPorcDto.setEnabled(false);
						jTextFPorcDto.setHorizontalAlignment(SwingConstants.CENTER);
					}
					{
						jBCrearPromoTipo = new JButton();
						jPPromoTipo.add(jBCrearPromoTipo);
						jBCrearPromoTipo.setText("Crear");
						jBCrearPromoTipo.setEnabled(false);
						jBCrearPromoTipo.setBounds(386, 84, 82, 24);
						jBCrearPromoTipo.setFont(new Font("Cataneo BT",0,16));
						jBCrearPromoTipo.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jBCrearPromoTipoActionPerformed(evt);
							}
						});
					}
					{
						jLIconoPorc = new JLabel();
						jPPromoTipo.add(jLIconoPorc);
						jLIconoPorc.setText("%");
						jLIconoPorc.setBounds(188, 88, 26, 16);
					}
					{
						jBBuscarElimPromTipo = new JButton();
						jPPromoTipo.add(jBBuscarElimPromTipo);
						jBBuscarElimPromTipo.setEnabled(false);
						jBBuscarElimPromTipo.setText("eliminar");
						jBBuscarElimPromTipo.setBounds(343, 31, 130, 23);
						jBBuscarElimPromTipo.setFont(new Font("Cataneo BT",0,16));
						jBBuscarElimPromTipo.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jBBuscarElimPromTipoActionPerformed(evt);
							}
						});
					}
				}
				{
					jPPromoTitulo = new JPanel();
					jPPromociones.add(jPPromoTitulo);
					jPPromoTitulo.setBounds(12, 302, 514, 154);
					jPPromoTitulo.setLayout(null);
					jPPromoTitulo.setBorder(BorderFactory.createTitledBorder("Promocion por titulo"));
					{
						jLPromoTitulo = new JLabel();
						jPPromoTitulo.add(jLPromoTitulo);
						jLPromoTitulo.setText("codigo del producto");
						jLPromoTitulo.setBounds(11, 30, 124, 16);
					}
					{
						jTextFTituloProdPromo = new JTextField();
						jPPromoTitulo.add(jTextFTituloProdPromo);
						jTextFTituloProdPromo.setEnabled(false);
						jTextFTituloProdPromo.setBounds(140, 27, 127, 23);
						jTextFTituloProdPromo.setHorizontalAlignment(SwingConstants.CENTER);
					}
					{
						jLPorcTitulo = new JLabel();
						jPPromoTitulo.add(jLPorcTitulo);
						jLPorcTitulo.setText("Porcentaje :");
						jLPorcTitulo.setBounds(17, 84, 99, 16);
					}
					{
						jTextFPorcPromTitul = new JTextField();
						jPPromoTitulo.add(jTextFPorcPromTitul);
						jTextFPorcPromTitul.setBounds(140, 81, 38, 23);
						jTextFPorcPromTitul.setEnabled(false);
					}
					{
						jLabel1 = new JLabel();
						jPPromoTitulo.add(jLabel1);
						jLabel1.setText("%");
						jLabel1.setBounds(190, 84, 20, 16);
					}
					{
						jBCrearPromTitulo = new JButton();
						jPPromoTitulo.add(jBCrearPromTitulo);
						jBCrearPromTitulo.setText("Crear");
						jBCrearPromTitulo.setEnabled(false);
						jBCrearPromTitulo.setBounds(388, 84, 78, 23);
						jBCrearPromTitulo.setSize(82, 24);
						jBCrearPromTitulo.setFont(new Font("Cataneo BT",0,16));
						jBCrearPromTitulo.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jBCrearPromTituloActionPerformed(evt);
							}
						});
					}
					{
						jBuscarElimPromTitulo = new JButton();
						jPPromoTitulo.add(jBuscarElimPromTitulo);
						jBuscarElimPromTitulo.setText("eliminar");
						jBuscarElimPromTitulo.setBounds(348, 27, 131, 23);
						jBuscarElimPromTitulo.setEnabled(false);
						jBuscarElimPromTitulo.setFont(new Font("Cataneo BT",0,16));
						jBuscarElimPromTitulo.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jBuscarElimPromTituloActionPerformed(evt);
							}
						});
					}
				}
				{
					jPromoUmbral = new JPanel();
					jPPromociones.add(jPromoUmbral);
					jPromoUmbral.setBounds(546, 123, 514, 154);
					jPromoUmbral.setBorder(BorderFactory.createTitledBorder("Promocion umbral"));
					jPromoUmbral.setLayout(null);
					{
						jLValorUmbral = new JLabel();
						jPromoUmbral.add(jLValorUmbral);
						jLValorUmbral.setText("Valor umbral :");
						jLValorUmbral.setBounds(17, 38, 96, 16);
					}
					{
						jTextFValorUmbral = new JTextField();
						jPromoUmbral.add(jTextFValorUmbral);	
						jTextFValorUmbral.setBounds(125, 35, 103, 23);
						jTextFValorUmbral.setEnabled(false);
					}
					{
						jLPorcPromUmbral = new JLabel();
						jPromoUmbral.add(jLPorcPromUmbral);
						jLPorcPromUmbral.setText("Porcentaje :");
						jLPorcPromUmbral.setBounds(17, 87, 96, 16);
					}
					{
						jTextFPorcUmbral = new JTextField();
						jPromoUmbral.add(jTextFPorcUmbral);
						jTextFPorcUmbral.setBounds(125, 84, 40, 23);
						jTextFPorcUmbral.setEnabled(false);
					}
					{
						jLabel2 = new JLabel();
						jPromoUmbral.add(jLabel2);
						jLabel2.setText("%");
						jLabel2.setBounds(177, 87, 21, 16);
					}
					{
						jBCrearPromoUmbral = new JButton();
						jPromoUmbral.add(jBCrearPromoUmbral);
						jBCrearPromoUmbral.setText("Crear");
						jBCrearPromoUmbral.setBounds(387, 87, 82, 24);
						jBCrearPromoUmbral.setFont(new Font("Cataneo BT",0,16));
						jBCrearPromoUmbral.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jBCrearPromoUmbralActionPerformed(evt);
							}
						});
						jBCrearPromoUmbral.setEnabled(false);
					}
					{
						jBuscarElimPromUmbral = new JButton();
						jPromoUmbral.add(jBuscarElimPromUmbral);
						jBuscarElimPromUmbral.setText("eliminar");
						jBuscarElimPromUmbral.setBounds(320, 35, 149, 23);
						jBuscarElimPromUmbral.setEnabled(false);
						jBuscarElimPromUmbral.setFont(new Font("Cataneo BT",0,16));
						jBuscarElimPromUmbral.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jBuscarElimPromUmbralActionPerformed(evt);
							}
						});
					}
				}
				{
					jPromoFecha = new JPanel();
					jPPromociones.add(jPromoFecha);
					jPromoFecha.setBounds(546, 302, 514, 154);
					jPromoFecha.setBorder(BorderFactory.createTitledBorder("Promocion entre fechas"));
					jPromoFecha.setLayout(null);
					{
						jLInicioPromoFecha = new JLabel();
						jPromoFecha.add(jLInicioPromoFecha);
						jLInicioPromoFecha.setText("Inicio :");
						jLInicioPromoFecha.setBounds(17, 36, 64, 16);
					}
					{
						jTextFInicioPromFecha = new JTextField();
						jPromoFecha.add(jTextFInicioPromFecha);
						jTextFInicioPromFecha.setBounds(86, 33, 102, 23);
						jTextFInicioPromFecha.setEnabled(false);
					}
					{
						jLFinalFechaProm = new JLabel();
						jPromoFecha.add(jLFinalFechaProm);
						jLFinalFechaProm.setText("Final :");
						jLFinalFechaProm.setBounds(210, 36, 52, 16);
					}
					{
						jTextFechaFinal = new JTextField();
						jPromoFecha.add(jTextFechaFinal);
						jTextFechaFinal.setBounds(274, 33, 108, 23);
						jTextFechaFinal.setEnabled(false);
					}
					{
						jTextFPorcPromFecha = new JTextField();
						jPromoFecha.add(jTextFPorcPromFecha);
						jTextFPorcPromFecha.setBounds(86, 82, 39, 23);
						jTextFPorcPromFecha.setEnabled(false);
					}
					{
						jLPorcPromFecha = new JLabel();
						jPromoFecha.add(jLPorcPromFecha);
						jLPorcPromFecha.setText("Porcentaje :");
						jLPorcPromFecha.setBounds(5, 85, 76, 16);
					}
					{
						jLabel3 = new JLabel();
						jPromoFecha.add(jLabel3);
						jLabel3.setText("%");
						jLabel3.setBounds(131, 85, 19, 16);
					}
					{
						jBCrearPromFecha = new JButton();
						jPromoFecha.add(jBCrearPromFecha);
						jBCrearPromFecha.setText("Crear");
						jBCrearPromFecha.setEnabled(false);
						jBCrearPromFecha.setBounds(390, 82, 82, 24);
						jBCrearPromFecha.setFont(new Font("Cataneo BT",0,16));
						jBCrearPromFecha.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jBCrearPromFechaActionPerformed(evt);
							}
						});
					}
					{
						jBuscarElimPromFecha = new JButton();
						jPromoFecha.add(jBuscarElimPromFecha);
						jBuscarElimPromFecha.setText("eliminar");
						jBuscarElimPromFecha.setBounds(203, 82, 149, 23);
						jBuscarElimPromFecha.setEnabled(false);
						jBuscarElimPromFecha.setFont(new Font("Cataneo BT",0,16));
						jBuscarElimPromFecha.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jBuscarElimPromFechaActionPerformed(evt);
							}
						});
					}
				}
				{
					jPRbutonsProm = new JPanel();
					jPPromociones.add(jPRbutonsProm);
					jPPromociones.add(getJBSalir());
					jPRbutonsProm.setBounds(12, 12, 1048, 96);
					jPRbutonsProm.setLayout(null);
					{
						jLPromociones = new JLabel();
						jPRbutonsProm.add(jLPromociones);
						jLPromociones.setText("Promociones");
						jLPromociones.setBounds(12, 12, 143, 29);
						jLPromociones.setFont(new Font("Cataneo BT",0, 20));
					}
					{
						jRadioBPromTipo = new JRadioButton();
						jPRbutonsProm.add(jRadioBPromTipo);
						jRadioBPromTipo.setText("Promocion por tipo");
						jRadioBPromTipo.setBounds(155, 10, 188, 20);
						jRadioBPromTipo.setFont(new Font("Cataneo BT",0,16));
						getButtonGroupRadioBProm().add(jRadioBPromTipo);
						jRadioBPromTipo.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jRadioBPromTipoActionPerformed(evt);
							}
						});
					}
					{
						jRadioBPromoTitulo = new JRadioButton();
						jPRbutonsProm.add(jRadioBPromoTitulo);
						jRadioBPromoTitulo.setText("Promocion por titulo");
						jRadioBPromoTitulo.setBounds(155, 51, 190, 20);
						jRadioBPromoTitulo.setFont(new Font("Cataneo BT",0,16));
						getButtonGroupRadioBProm().add(jRadioBPromoTitulo);
						jRadioBPromoTitulo.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jRadioBPromoTituloActionPerformed(evt);
							}
						});
					}
					{
						jRadioBPromoTope = new JRadioButton();
						jPRbutonsProm.add(jRadioBPromoTope);
						jRadioBPromoTope.setText("Promocion umbral");
						jRadioBPromoTope.setBounds(362, 10, 212, 20);
						jRadioBPromoTope.setFont(new Font("Cataneo BT",0,16));
						getButtonGroupRadioBProm().add(jRadioBPromoTope);
						jRadioBPromoTope.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jRadioBPromoTopeActionPerformed(evt);
							}
						});
					}
					{
						jRadioBPromFechas = new JRadioButton();
						jPRbutonsProm.add(jRadioBPromFechas);
						jRadioBPromFechas.setText("Promocion entre fechas");
						jRadioBPromFechas.setBounds(362, 51, 212, 20);
						jRadioBPromFechas.setFont(new Font("Cataneo BT",0,16));
						getButtonGroupRadioBProm().add(jRadioBPromFechas);
						jRadioBPromFechas.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jRadioBPromFechasActionPerformed(evt);
							}
						});
					}
				}
			}
			pack();
			this.setSize(1150, 619);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	private void jRadioBPromTipoActionPerformed(ActionEvent evt) {
		System.out.println("jRadioBPromTipo.actionPerformed, event="+evt);
		jTextFPorcDto.setEnabled(true);
		jComboBoxTipoProm.setEnabled(true);
		jBCrearPromoTipo.setEnabled(true);
		jBBuscarElimPromTipo.setEnabled(true);
		jTextFTituloProdPromo.setEnabled(false);
		jTextFPorcPromTitul.setEnabled(false);
		jBCrearPromTitulo.setEnabled(false);
		jBuscarElimPromTitulo.setEnabled(false);
		jTextFValorUmbral.setEnabled(false);
		jTextFPorcUmbral.setEnabled(false);
		jBCrearPromoUmbral.setEnabled(false);
		jBuscarElimPromUmbral.setEnabled(false);
		jTextFInicioPromFecha.setEnabled(false);
		jTextFechaFinal.setEnabled(false);
		jTextFPorcPromFecha.setEnabled(false);
		jBCrearPromFecha.setEnabled(false);
		jBuscarElimPromFecha.setEnabled(false);
	}
	
	private void jRadioBPromFechasActionPerformed(ActionEvent evt) {
		jTextFPorcDto.setEnabled(false);
		jComboBoxTipoProm.setEnabled(false);
		jBCrearPromoTipo.setEnabled(false);
		jBBuscarElimPromTipo.setEnabled(false);
		jTextFTituloProdPromo.setEnabled(false);
		jTextFPorcPromTitul.setEnabled(false);
		jBCrearPromTitulo.setEnabled(false);
		jBuscarElimPromTitulo.setEnabled(false);
		jTextFValorUmbral.setEnabled(false);
		jTextFPorcUmbral.setEnabled(false);
		jBCrearPromoUmbral.setEnabled(false);
		jBuscarElimPromUmbral.setEnabled(false);
		jTextFInicioPromFecha.setEnabled(true);
		jTextFechaFinal.setEnabled(true);
		jTextFPorcPromFecha.setEnabled(true);
		jBCrearPromFecha.setEnabled(true);
		jBuscarElimPromFecha.setEnabled(true);
	}
	
	private void jRadioBPromoTituloActionPerformed(ActionEvent evt) {
		jTextFPorcDto.setEnabled(false);
		jComboBoxTipoProm.setEnabled(false);
		jBCrearPromoTipo.setEnabled(false);
		jBBuscarElimPromTipo.setEnabled(false);
		jTextFTituloProdPromo.setEnabled(true);
		jTextFPorcPromTitul.setEnabled(true);
		jBCrearPromTitulo.setEnabled(true);
		jBuscarElimPromTitulo.setEnabled(true);
		jTextFValorUmbral.setEnabled(false);
		jTextFPorcUmbral.setEnabled(false);
		jBCrearPromoUmbral.setEnabled(false);
		jBuscarElimPromUmbral.setEnabled(false);
		jTextFInicioPromFecha.setEnabled(false);
		jTextFechaFinal.setEnabled(false);
		jTextFPorcPromFecha.setEnabled(false);
		jBCrearPromFecha.setEnabled(false);
		jBuscarElimPromFecha.setEnabled(false);
	}
	
	private void jRadioBPromoTopeActionPerformed(ActionEvent evt) {
		jTextFPorcDto.setEnabled(false);
		jComboBoxTipoProm.setEnabled(false);
		jBCrearPromoTipo.setEnabled(false);
		jBBuscarElimPromTipo.setEnabled(false);
		jTextFTituloProdPromo.setEnabled(false);
		jTextFPorcPromTitul.setEnabled(false);
		jBCrearPromTitulo.setEnabled(false);
		jBuscarElimPromTitulo.setEnabled(false);
		jTextFValorUmbral.setEnabled(true);
		jTextFPorcUmbral.setEnabled(true);
		jBCrearPromoUmbral.setEnabled(true);
		jBuscarElimPromUmbral.setEnabled(true);
		jTextFInicioPromFecha.setEnabled(false);
		jTextFechaFinal.setEnabled(false);
		jTextFPorcPromFecha.setEnabled(false);
		jBCrearPromFecha.setEnabled(false);
		jBuscarElimPromFecha.setEnabled(false);
	}
	
	private void jBCrearPromoTipoActionPerformed(ActionEvent evt) {
		System.out.println("jBCrearPromoTipo.actionPerformed, event="+evt);
		//TODO add your code for jBCrearPromoTipo.actionPerformed
	}
	
	private void jBCrearPromTituloActionPerformed(ActionEvent evt) {
		System.out.println("jBCrearPromTitulo.actionPerformed, event="+evt);
		//TODO add your code for jBCrearPromTitulo.actionPerformed
	}
	
	private void jBCrearPromFechaActionPerformed(ActionEvent evt) {
		System.out.println("jBCrearPromFecha.actionPerformed, event="+evt);
		//TODO add your code for jBCrearPromFecha.actionPerformed
	}
	
	private void jBuscarElimPromTituloActionPerformed(ActionEvent evt) {
		System.out.println("jBuscarElimPromTitulo.actionPerformed, event="+evt);
		//TODO add your code for jBuscarElimPromTitulo.actionPerformed
	}
	
	private void jBBuscarElimPromTipoActionPerformed(ActionEvent evt) {
		System.out.println("jBBuscarElimPromTipo.actionPerformed, event="+evt);
		//TODO add your code for jBBuscarElimPromTipo.actionPerformed
	}
	
	private void jBuscarElimPromUmbralActionPerformed(ActionEvent evt) {
		System.out.println("jBuscarElimPromUmbral.actionPerformed, event="+evt);
		//TODO add your code for jBuscarElimPromUmbral.actionPerformed
	}
	
	private void jBuscarElimPromFechaActionPerformed(ActionEvent evt) {
		System.out.println("jBuscarElimPromFecha.actionPerformed, event="+evt);
		//TODO add your code for jBuscarElimPromFecha.actionPerformed
	}
	
	private void jBCrearPromoUmbralActionPerformed(ActionEvent evt) {
		System.out.println("jBCrearPromoUmbral.actionPerformed, event="+evt);
		//TODO add your code for jBCrearPromoUmbral.actionPerformed
	}
	
	private void jComboBoxTipoPromActionPerformed(ActionEvent evt) {
		
	}
	
	
	
	private ButtonGroup getButtonGroupRadioBProm() {
		if(buttonGroupRadioBProm == null) {
			buttonGroupRadioBProm = new ButtonGroup();
		}
		return buttonGroupRadioBProm;
	}
	
	private JButton getJBSalir() {
		if(jBSalir == null) {
			jBSalir = new JButton();
			jBSalir.setText("Salir");
			jBSalir.setFont(new Font("Cataneo BT",1,17));
			jBSalir.setBounds(942, 487, 118, 52);
			jBSalir.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent evt) {
					jBSalirActionPerformed(evt);
				}
			});
		}
		return jBSalir;
	}
	
	private void jBSalirActionPerformed(ActionEvent evt) {
	
		setVisible(false);
	}

}
